from playLA.Matrix import Matrix

if __name__ == "__main__":

    matrix = Matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
    matrix1 = Matrix([[4, 5, 6], [7, 8, 9], [1, 2, 3]])

    print(matrix)

    print("Matrix size = {}".format(matrix.size()))
    print("Matrix shape = {}".format(matrix.shape()))

    print("len(Matrix) = {})".format(len(matrix)))
    print("Matrix[0][0] = {}".format(matrix[0, 0]))

    print("{} + {} = {}".format(matrix, matrix1, matrix + matrix1))
    print("{} - {} = {}".format(matrix, matrix1, matrix - matrix1))

    print("{} * {} = {}".format(matrix, 5, matrix * 5))

    print("T = {}".format(matrix.T()))
